-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/milestone trustful zuzalu d app interface #18
base: main
Are you sure you want to change the base?
Feat/milestone trustful zuzalu d app interface #18
Conversation
feat: add trustful-context
Feat/welcome text role
Feat/give badge
fea: add share page
Feat/my badges
feat: add my-badge details
Feat/smart contract functions
toast.error( | ||
`Unsupported network. Please switch to the ${isDev ? 'Scroll Sepolia' : 'Scroll'} network.`, | ||
); | ||
switchChain({ chainId: isDev ? scrollSepolia.id : scroll.id }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this needs to use switchChainAsync
in order to make sure the user switches chain when necessary?
from: address, | ||
role: role, | ||
account: validAddress.address as `0x${string}`, | ||
msgValue: BigInt(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I cannot see your feedbacks if you resolve the conversations
- Is this value always the same? As per my research it is always 0, being possible to set this as a function internal function
from: address, | ||
role: role, | ||
account: validAddress.address as `0x${string}`, | ||
msgValue: BigInt(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from: address, | ||
uid: schemaUID as `0x${string}`, | ||
action: action, | ||
msgValue: BigInt(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from: address, | ||
sessionTitle: inputValuesTextArea['removeSessionTitle'], | ||
sessionOwner: validAddress.address as Address, | ||
msgValue: BigInt(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | ||
action: ADMIN_ACTION.JOIN_SESSION, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heronlancellot I can not see your feedback properly if you resolve the conversation
{ | ||
action: ADMIN_ACTION.JOIN_SESSION, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See how you are defining the arrays as [{ action: something }, { action: something_else }] when these could be defined as [something, something_else]
|
||
const [isCopied, setIsCopied] = useState<boolean>(false); | ||
const [isVisible, setIsVisible] = useState(false); | ||
// const prefixToGiveBadge = 'https://trustful.ing/give-badge'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add comments on the commented sections, sharing why these are commented and if these are open action items?
setEventDetails(eventsData); | ||
} | ||
} catch (error) { | ||
console.log('error', error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('error', error); | |
console.error('error', error); |
…ce' into feat/milestone-trustful-zuzalu-dApp-interface
…zalu-dApp-interface Feat/milestone trustful zuzalu d app interface
const iconColor = | ||
(inputAddress && isAddress(inputAddress)) || | ||
(badgeInputAddress && isAddress(badgeInputAddress?.address)) | ||
? 'text-[#000000 ]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? 'text-[#000000 ]' | |
? 'text-[#000000]' |
} else if (inputBadge.uid === TRUSTFUL_SCHEMAS.ATTEST_EVENT.uid) { | ||
encodeParam = TRUSTFUL_SCHEMAS.ATTEST_EVENT.data; | ||
encodeArgs = [inputBadge.title, commentBadge ?? '']; | ||
console.log('badgeInputAddress', badgeInputAddress); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('badgeInputAddress', badgeInputAddress); |
ROLES.VILLAGER, | ||
badgeInputAddress.address, | ||
); | ||
console.log('isVillager', isVillager); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('isVillager', isVillager); |
parseAbiParameters(encodeParam), | ||
encodeArgs, | ||
); | ||
console.log('data', data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('data', data); |
toast.error( | ||
'Address already checked-out: Address already have this badge.', | ||
); | ||
console.log('!isVillager2', !isVillager); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('!isVillager2', !isVillager); |
if (!inputBadge) { | ||
setLoading(false); | ||
toast.error('Invalid Badge: Please select a badge to give.'); | ||
console.log('!inputBadge', !inputBadge); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('!inputBadge', !inputBadge); |
if (!badgeInputAddress) { | ||
setLoading(false); | ||
toast.error('Invalid Ethereum Address: Please provide a valid address.'); | ||
console.log('!badgeInputAddress', !badgeInputAddress); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('!badgeInputAddress', !badgeInputAddress); |
if (!address) { | ||
setLoading(false); | ||
toast.error('No account connected: Please connect your wallet.'); | ||
console.log('!address', !address); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('!address', !address); |
data: data, | ||
value: BigInt(0), | ||
}; | ||
console.log('attestationRequestData', attestationRequestData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('attestationRequestData', attestationRequestData); |
inputBadge.uid, | ||
attestationRequestData, | ||
); | ||
console.log('response', response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('response', response); |
export const TheFooterNavbar = () => { | ||
const params = useParams(); | ||
const { push } = useRouter(); | ||
// const { villagerAttestationCount } = useContext(WalletContext); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// const { villagerAttestationCount } = useContext(WalletContext); |
} | ||
}, []); | ||
|
||
const villagerAttestationCount = Number(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine this logic needs to be dynamic, right?
</Text> | ||
</Box> | ||
)} | ||
{/* <Box |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment on why this is commented out
as={IconButton} | ||
aria-label="Options" | ||
icon={ | ||
<Flex className="p-[6px] gap-2 items-center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Flex className="p-[6px] gap-2 items-center"> | |
<Flex className="p-1.5 gap-2 items-center"> |
{/* {isOpenMenu && ( | ||
<DropdownProfile isOpenMenu={isOpenMenu} onClose={closeMenu} /> | ||
)} */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment on why this is out, please! And in every commented out section, please :)
{/* {isOpenMenu && ( | |
<DropdownProfile isOpenMenu={isOpenMenu} onClose={closeMenu} /> | |
)} */} | |
{/* {isOpenMenu && ( | |
<DropdownProfile isOpenMenu={isOpenMenu} onClose={closeMenu} /> | |
)} */} |
context/TrustfulContext.tsx
Outdated
|
||
// host_ + titleSession(Name-Session) + _ + Timestamp | ||
|
||
// nas sessoes que eu sou owner adicionar badge de host e atendee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// nas sessoes que eu sou owner adicionar badge de host e atendee | |
// TODO: nas sessoes que eu sou owner adicionar badge de host e atendee |
context/TrustfulContext.tsx
Outdated
userAddress: address as Address, | ||
}); | ||
|
||
console.log('eventsxxxx', events); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('eventsxxxx', events); |
context/TrustfulContext.tsx
Outdated
|
||
if (spaceIds) { | ||
for (const spaceId of spaceIds) { | ||
console.log('spaceId', spaceId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('spaceId', spaceId); |
context/TrustfulContext.tsx
Outdated
eventid: event.eventId, | ||
userAddress: address as Address, | ||
}); | ||
console.log('sessionssessionssessionssessions', sessions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('sessionssessionssessionssessions', sessions); |
context/TrustfulContext.tsx
Outdated
} | ||
} | ||
} catch (error) { | ||
console.log('error', error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('error', error); | |
console.error('error', error); |
…://github.com/heronlancellot/ZuzaluCityOS into feat/milestone-trustful-zuzalu-dApp-interface
…zalu-dApp-interface Feat/milestone trustful zuzalu d app interface
feat: move Invalid Date to end
…zalu-dApp-interface feat: merge-main-into-zuzalu
…://github.com/heronlancellot/ZuzaluCityOS into feat/milestone-trustful-zuzalu-dApp-interface
…zalu-dApp-interface Feat/milestone trustful zuzalu d app interface
fix: improve layout responsiveness and styling adjustments
Refactor/toast
…zalu-dApp-interface Feat/toast
No description provided.